package com.kaili.tms.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.common.response.RestStatus;
import com.kaili.tms.pojo.dto.ShiftsRulesQueryDTO;
import com.kaili.tms.pojo.entity.ExportShiftsRules;
import com.kaili.tms.pojo.entity.ShiftsRulesEntity;
import com.kaili.tms.pojo.vo.RouteCodeOrNameVO;
import com.kaili.tms.pojo.vo.ShiftsRulesVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @author: zengshuai
 * @Time: 19-2-19 上午10:08
 */
@Mapper
public interface ShiftsRulesMapper {

    List<ShiftsRulesVO> queryShiftsRules(Page<ShiftsRulesVO> page,ShiftsRulesQueryDTO queryDTO);

    public Integer addShiftsRules(ShiftsRulesEntity addDTO);

    public Integer updateShiftsRules(ShiftsRulesEntity updateDTO);

    public Integer deleteShiftsRules(Long id);

    public Long getTrainNum();

    List<RouteCodeOrNameVO> getRouteCodeOrName(@Param("code") String code);


    List<ExportShiftsRules> queryShiftsRulesExport(Map<String, Object> map);



}
